GXCloseSpoolFile
QuickDraw GX sends theGXCloseSpoolFile
message to close the spool file. If you perform your own spooling, you need to override theGXCloseSpoolFile
message to handle closing the spool file and updating it on disk. Your override of theGXCloseSpoolFile
message must match the following formal declaration:
OSErr MyCloseSpoolFile (gxSpoolFile aSpoolFile, long closeOptions);
aSpoolFile
- The spool file.
closeOptions
- Options for closing the spool file, as shown in Table 4-6.
- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
QuickDraw GX sends theGXCloseSpoolFile
message to close and possibly delete a spool file once imaging is complete. You can specify various options in thecloseOptions
parameter. The constants for the spool-file closing options are shown in Table 4-6.You can override the
GXCloseSpoolFile
message to perform any operations that you need to when the spool file is closed.The default implementation of the
GXCloseSpoolFile
message includes thegxDeleteOnClose
option.SPECIAL CONSIDERATIONS
You rarely send theGXCloseSpoolFile
message yourself.If you are providing your own spooling, you need to totally override the
GXCloseSpoolFile
message and all of the other spooling and despooling messages.If you are not providing your own spooling, you must forward the
GXCloseSpoolFile
message to allow the default implementation to close the spool file.RESULT CODES
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help